package com.mall.system.server.config;

import com.alipay.easysdk.kernel.Config;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class AliPayConfigA {

    @Bean
    public Config aliPayConfig(){
        Config config = new Config();
        config.protocol = "https";
        //https://openapi-sandbox.dl.alipaydev.com/gateway.do
        config.gatewayHost = "openapi-sandbox.dl.alipaydev.com";
        config.signType = "RSA2";
        config.appId = "9021000142694356";
        // 为避免私钥随源码泄露，推荐从文件中读取私钥字符串而不是写入源码中
        config.merchantPrivateKey = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCO/GqXBK3PlxMX9hlYYJXd0WnrHPQ0kF0AiWD/eL5tWE+Yr6LOooahEDYfYeINaJ9KmcXx7hTcaMU8+JCW3Re0VXMxkCPMXJ3T+mEHTnPA3KQfGdIAEMDSxUgZqSa7YrAVZQVvxBIAjlYpwYZUjihbHSAgTahokb4TWF+dN1PKAWd4ly4O/8T8n7dnBTQTlrdlV/EHmQZuY/D/qiVMnOvFKA9LahIUSIJI1ndbMRqA7zw/Bsulqusa8GdbUczI1grKtsu9/ixQs9aAsvA49ViBGCv+xZl5uFvIAC1zS64l+H8WU210dFCnVOJP8NmXyk+NCxMA86HtuBMKEodUjXezAgMBAAECggEAaky5qYAu/4+fAEdTXGKhyACxr7scyh8xJP78/7ByUbQ/qJGahehKEl+M/RO2DKXlFn7vrAaFt76kM8nPJHlF8Ck+tHAmTP3lz/vqOpZWc+EUmpKFjsrlr0w/Z+RbCSA7LAyoWAj6ITOwVuaqyR3OXr5ubdWOB/+hwZwHqUfCoP/7gDccNMSvhZx4n92mrXid7aoI4O0jc4iQbaykwxiK8tnMEilTL4l3sLvXX6FHbCMKYr6OEDdGoPJ7EuuHM4eyGRysOdnTVKllexKKbUXvXTKlIK+blHlaEpOO+a/bkQxQ9D8OoYO58xEB/6Yi9le1SIVn6RPngWsB5GRCCGeiIQKBgQDr7mKb73ppWW97Jf0fVvF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EqCj9yoFxHOJc9K6qAXPb7THTuJdQmTL0fAqLWskbms/O0X/3xp0ygqhb9jagpVNNFFIp6/9w2JNDpf6PWzhOUh2APWqczkacu/xVtPcu8ibhUW3EhIhpMc9OdyF+HiiLK4/0wCy9IjDvIk7/oVnkLEhbZASO6Q2FtUWeQIDAQAB";
        //可设置异步通知接收服务地址（可选）
        config.notifyUrl = " http://jtuc3r.natappfree.cc/notify";
        //可设置AES密钥，调用AES加解密相关接口时需要（可选）
        //config.encryptKey = "<-- 请填写您的AES密钥，例如：aa4BtZ4tspm2wnXLb1ThQA== -->";
        return config;
    }



}
